package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FUsTrycrExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FUsTrycrExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(String value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(String value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(String value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(String value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(String value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(String value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLike(String value) {
            addCriterion("date like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotLike(String value) {
            addCriterion("date not like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<String> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<String> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(String value1, String value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(String value1, String value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andY5IsNull() {
            addCriterion("y5 is null");
            return (Criteria) this;
        }

        public Criteria andY5IsNotNull() {
            addCriterion("y5 is not null");
            return (Criteria) this;
        }

        public Criteria andY5EqualTo(Float value) {
            addCriterion("y5 =", value, "y5");
            return (Criteria) this;
        }

        public Criteria andY5NotEqualTo(Float value) {
            addCriterion("y5 <>", value, "y5");
            return (Criteria) this;
        }

        public Criteria andY5GreaterThan(Float value) {
            addCriterion("y5 >", value, "y5");
            return (Criteria) this;
        }

        public Criteria andY5GreaterThanOrEqualTo(Float value) {
            addCriterion("y5 >=", value, "y5");
            return (Criteria) this;
        }

        public Criteria andY5LessThan(Float value) {
            addCriterion("y5 <", value, "y5");
            return (Criteria) this;
        }

        public Criteria andY5LessThanOrEqualTo(Float value) {
            addCriterion("y5 <=", value, "y5");
            return (Criteria) this;
        }

        public Criteria andY5In(List<Float> values) {
            addCriterion("y5 in", values, "y5");
            return (Criteria) this;
        }

        public Criteria andY5NotIn(List<Float> values) {
            addCriterion("y5 not in", values, "y5");
            return (Criteria) this;
        }

        public Criteria andY5Between(Float value1, Float value2) {
            addCriterion("y5 between", value1, value2, "y5");
            return (Criteria) this;
        }

        public Criteria andY5NotBetween(Float value1, Float value2) {
            addCriterion("y5 not between", value1, value2, "y5");
            return (Criteria) this;
        }

        public Criteria andY7IsNull() {
            addCriterion("y7 is null");
            return (Criteria) this;
        }

        public Criteria andY7IsNotNull() {
            addCriterion("y7 is not null");
            return (Criteria) this;
        }

        public Criteria andY7EqualTo(Float value) {
            addCriterion("y7 =", value, "y7");
            return (Criteria) this;
        }

        public Criteria andY7NotEqualTo(Float value) {
            addCriterion("y7 <>", value, "y7");
            return (Criteria) this;
        }

        public Criteria andY7GreaterThan(Float value) {
            addCriterion("y7 >", value, "y7");
            return (Criteria) this;
        }

        public Criteria andY7GreaterThanOrEqualTo(Float value) {
            addCriterion("y7 >=", value, "y7");
            return (Criteria) this;
        }

        public Criteria andY7LessThan(Float value) {
            addCriterion("y7 <", value, "y7");
            return (Criteria) this;
        }

        public Criteria andY7LessThanOrEqualTo(Float value) {
            addCriterion("y7 <=", value, "y7");
            return (Criteria) this;
        }

        public Criteria andY7In(List<Float> values) {
            addCriterion("y7 in", values, "y7");
            return (Criteria) this;
        }

        public Criteria andY7NotIn(List<Float> values) {
            addCriterion("y7 not in", values, "y7");
            return (Criteria) this;
        }

        public Criteria andY7Between(Float value1, Float value2) {
            addCriterion("y7 between", value1, value2, "y7");
            return (Criteria) this;
        }

        public Criteria andY7NotBetween(Float value1, Float value2) {
            addCriterion("y7 not between", value1, value2, "y7");
            return (Criteria) this;
        }

        public Criteria andY10IsNull() {
            addCriterion("y10 is null");
            return (Criteria) this;
        }

        public Criteria andY10IsNotNull() {
            addCriterion("y10 is not null");
            return (Criteria) this;
        }

        public Criteria andY10EqualTo(Float value) {
            addCriterion("y10 =", value, "y10");
            return (Criteria) this;
        }

        public Criteria andY10NotEqualTo(Float value) {
            addCriterion("y10 <>", value, "y10");
            return (Criteria) this;
        }

        public Criteria andY10GreaterThan(Float value) {
            addCriterion("y10 >", value, "y10");
            return (Criteria) this;
        }

        public Criteria andY10GreaterThanOrEqualTo(Float value) {
            addCriterion("y10 >=", value, "y10");
            return (Criteria) this;
        }

        public Criteria andY10LessThan(Float value) {
            addCriterion("y10 <", value, "y10");
            return (Criteria) this;
        }

        public Criteria andY10LessThanOrEqualTo(Float value) {
            addCriterion("y10 <=", value, "y10");
            return (Criteria) this;
        }

        public Criteria andY10In(List<Float> values) {
            addCriterion("y10 in", values, "y10");
            return (Criteria) this;
        }

        public Criteria andY10NotIn(List<Float> values) {
            addCriterion("y10 not in", values, "y10");
            return (Criteria) this;
        }

        public Criteria andY10Between(Float value1, Float value2) {
            addCriterion("y10 between", value1, value2, "y10");
            return (Criteria) this;
        }

        public Criteria andY10NotBetween(Float value1, Float value2) {
            addCriterion("y10 not between", value1, value2, "y10");
            return (Criteria) this;
        }

        public Criteria andY20IsNull() {
            addCriterion("y20 is null");
            return (Criteria) this;
        }

        public Criteria andY20IsNotNull() {
            addCriterion("y20 is not null");
            return (Criteria) this;
        }

        public Criteria andY20EqualTo(Float value) {
            addCriterion("y20 =", value, "y20");
            return (Criteria) this;
        }

        public Criteria andY20NotEqualTo(Float value) {
            addCriterion("y20 <>", value, "y20");
            return (Criteria) this;
        }

        public Criteria andY20GreaterThan(Float value) {
            addCriterion("y20 >", value, "y20");
            return (Criteria) this;
        }

        public Criteria andY20GreaterThanOrEqualTo(Float value) {
            addCriterion("y20 >=", value, "y20");
            return (Criteria) this;
        }

        public Criteria andY20LessThan(Float value) {
            addCriterion("y20 <", value, "y20");
            return (Criteria) this;
        }

        public Criteria andY20LessThanOrEqualTo(Float value) {
            addCriterion("y20 <=", value, "y20");
            return (Criteria) this;
        }

        public Criteria andY20In(List<Float> values) {
            addCriterion("y20 in", values, "y20");
            return (Criteria) this;
        }

        public Criteria andY20NotIn(List<Float> values) {
            addCriterion("y20 not in", values, "y20");
            return (Criteria) this;
        }

        public Criteria andY20Between(Float value1, Float value2) {
            addCriterion("y20 between", value1, value2, "y20");
            return (Criteria) this;
        }

        public Criteria andY20NotBetween(Float value1, Float value2) {
            addCriterion("y20 not between", value1, value2, "y20");
            return (Criteria) this;
        }

        public Criteria andY30IsNull() {
            addCriterion("y30 is null");
            return (Criteria) this;
        }

        public Criteria andY30IsNotNull() {
            addCriterion("y30 is not null");
            return (Criteria) this;
        }

        public Criteria andY30EqualTo(Float value) {
            addCriterion("y30 =", value, "y30");
            return (Criteria) this;
        }

        public Criteria andY30NotEqualTo(Float value) {
            addCriterion("y30 <>", value, "y30");
            return (Criteria) this;
        }

        public Criteria andY30GreaterThan(Float value) {
            addCriterion("y30 >", value, "y30");
            return (Criteria) this;
        }

        public Criteria andY30GreaterThanOrEqualTo(Float value) {
            addCriterion("y30 >=", value, "y30");
            return (Criteria) this;
        }

        public Criteria andY30LessThan(Float value) {
            addCriterion("y30 <", value, "y30");
            return (Criteria) this;
        }

        public Criteria andY30LessThanOrEqualTo(Float value) {
            addCriterion("y30 <=", value, "y30");
            return (Criteria) this;
        }

        public Criteria andY30In(List<Float> values) {
            addCriterion("y30 in", values, "y30");
            return (Criteria) this;
        }

        public Criteria andY30NotIn(List<Float> values) {
            addCriterion("y30 not in", values, "y30");
            return (Criteria) this;
        }

        public Criteria andY30Between(Float value1, Float value2) {
            addCriterion("y30 between", value1, value2, "y30");
            return (Criteria) this;
        }

        public Criteria andY30NotBetween(Float value1, Float value2) {
            addCriterion("y30 not between", value1, value2, "y30");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}